package com.tramy.cn.push;

import com.tramy.cn.push.common.AuthInfo;
import com.tramy.cn.push.common.Data;
import com.tramy.cn.push.common.PushRes;
import com.tramy.cn.push.sender.SenderManager;

import java.util.List;

public class PushClient {

    private final SenderManager senderManager;

    public PushClient(List<AuthInfo> authInfos) {
        senderManager = new SenderManager(authInfos);
    }

    public PushRes sendData(String platform, List<Data> dataList) {
        return senderManager.getSender(platform).sendData(dataList);
    }

}
